package com.aiit.service.impl;

import com.aiit.dao.ConsultationDao;
import com.aiit.pojo.Consultation;
import com.aiit.pojo.Patient;
import com.aiit.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * ClassName:ConService
 * Package:com.aiit.service.impl
 * Description:
 *
 * @Date:2020/4/19 16:57
 * @Author:xjs
 */
@Service
public class ConService {

    @Resource
    private ConsultationDao consuDao;

    public  Boolean updateUserContent(Consultation consultation){
        return consuDao.updateUserContent(consultation);
    }
    public Boolean updateUser(Patient patient){
        return consuDao.updateUser(patient);
    }
    public int findIdByName(String username){
        return  consuDao.findIdByName(username);
    }
    public int updateRelpy(Consultation consultation){
        return consuDao.updateRelpy(consultation);
    }
}
